package cn.zyq.demo.system.config.consts.redis;

import cn.zyq.demo.system.config.consts.route.RoutePrefixConst;

import java.text.MessageFormat;

public class RedisMgtKeys {
    /**
     * 获得管理系统sessionid的key值
     *
     * @param serviceID 业务id
     * @return
     */
    public static String SESSIONID_KEY(String serviceID) {
        return RoutePrefixConst.mgt + ".sessionID:" + serviceID;
    }


    /**
     * 点击限制key
     *
     * @return
     */
    public static String ONE_CLICK_KEY(String scope, Integer userMpID) {
        return MessageFormat.format("{0}.oneClick.{1}:{2}", RoutePrefixConst.mgt, scope, userMpID);
    }
}
